﻿<div id="content_left">
<h2 style="font-size: 25px;" class="orange">
DANH SÁCH THÀNH VIÊN</h2>

<table width="97%" cellspacing="0" cellpadding="0" border="0" class="tableList">
                          <tr>
                            <td align="left"><span class="title_list">User name</span></td>
                            <td width="70" align="left"><span class="title_list">Họ tên</span></td>
                            <td width="70" align="left"><span class="title_list">Quyền</span></td>
							<td colspan="2" align="center"><span class="title_list">Quản lí</span></td>
                          </tr>
                        <?php
		$i = 0;
		foreach ($datas as $data):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		//var_dump($datas);
	?> 
						<tr height="25" class="bg2">						
							<td class="titleListDetail">
								<?php echo $this->Html->link($data['User']['user_name'], array('controller' => 'users', 'action' => 'adminview_user', $data['User']['id'])); ?>&nbsp;
     							      	
                            </td>
							<td align="center"><?php echo $data['User']['hoten']; ?>&nbsp;</td>
							<td align="center"><?php echo $data['User']['role']; ?>&nbsp;</td>	
							<td align="center"><?php echo $this->Html->link(__('Sửa User', true), array('action' => 'adminedit_user', $data['User']['id'])); ?> &nbsp;</td>
							<td align="center"><?php echo $this->Html->link(__('Xóa User', true), array('action' => 'delete', $data['User']['id']), null, sprintf(__('Bạn chắc muốn xóa user: %s?', true), $data['User']['user_name'])); ?> &nbsp;</td>
						</tr>	
<?php endforeach;
	?>
						 
						</table>
						</br>
						</br>
						</br>
						</br>
</div>